projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4405ed
)
(Fexpand_abbrev): Increment plist as use count only if it is an integer.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 3 Mar 2002 20:08:56 +0000
(20:08 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 3 Mar 2002 20:08:56 +0000
(20:08 +0000)
src/abbrev.c
patch
|
blob
|
history
diff --git
a/src/abbrev.c
b/src/abbrev.c
index 3edbe2458311ce462b723adb10c2261407ec42bf..d134f95f25bd195c96800ad9eb6d57671c1a169d 100644
(file)
--- a/
src/abbrev.c
+++ b/
src/abbrev.c
@@
-331,7
+331,7
@@
Returns the abbrev symbol, if expansion took place. */)
if (INTEGERP (XSYMBOL (sym)->plist))
XSETINT (XSYMBOL (sym)->plist,
XINT (XSYMBOL (sym)->plist) + 1);
- else if (
!NIL
P (tem = Fget (sym, Qcount)))
+ else if (
INTEGER
P (tem = Fget (sym, Qcount)))
Fput (sym, Qcount, make_number (XINT (tem) + 1));
/* If this abbrev has an expansion, delete the abbrev